#include <iostream>
using namespace std;

int main111() {
	int arr[5] = { 1,2,3,4,5 };


	for (int i = 0; i < 5; i++)
	{		
		for (int n = i+1; n < 5; n++) {
			if (arr[i] < arr[n]) {
				int temp = arr[n];
				arr[n] = arr[i];
				arr[i] = temp;
			}

		}

	}

	for (int i = 0; i < 5; i++) {
		cout << arr[i] << endl;
	}

	return 0;
}